package com.guldan.jaina.utils;

import com.guldan.core.utils.DateUtil;
import com.guldan.jaina.dto.projectextensionrelation.ProjectExtensionRelationDTO;
import com.guldan.mapper.db.entity.ProjectExtensionRelation;

/**
 * Created by Silas.
 * Date: 2016/11/7
 * Time: 22:34
 */
public class ProjectExtensionRelationDomainConvertUtils {


    public static ProjectExtensionRelationDTO convert(ProjectExtensionRelation entity) {
    	ProjectExtensionRelationDTO dto = new ProjectExtensionRelationDTO();
    	
    	dto.setProjectId(entity.getProjectId());
    	dto.setExtId(entity.getExtId());
    	
    	dto.setCreateTime(DateUtil.toLocaleString(entity.getCreateTime(), DateUtil.YYYY_MM_DD_HH_DD_SS));
    	dto.setCreator(entity.getCreator());
    	dto.setDelete(entity.getIsDelete());
    	dto.setDisabled(entity.getDisabled());
    	dto.setModifier(entity.getModifier());
    	dto.setModifyTime(DateUtil.toLocaleString(entity.getModifyTime(), DateUtil.YYYY_MM_DD_HH_DD_SS));
    	
        return dto;
    }


}
